const mongoose = require('mongoose');

var mongoosePaginate = require('mongoose-paginate');
var schema           = new mongoose.Schema({
    name    : String,
    password: String,
    sex     : Boolean,
    age     : Number,
    email   : String,
    phone   : Number,
    degree  : String,
    address : String,
    hobby   : Array,
    address : String,
});
schema.plugin(mongoosePaginate);

module.exports = mongoose.model('User', schema,'user');